package com.zbkj.common.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TransferOrderRequest", description = "门店、仓库调货单新增对象")
public class TransferOrderRequest {

    @ApiModelProperty(value = "转出类型(1仓库  2门店)")
    private Integer transferOutType;

    @ApiModelProperty(value = "转出门店id(转出仓库id)")
    private Integer transferOutStoreId;

    @ApiModelProperty(value = "转入类型(1仓库  2门店)")
    private Integer transferInType;

    @ApiModelProperty(value = "转入门店id(转入仓库id)")
    private Integer transferInStoreId;

    @ApiModelProperty(value = "单据时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date receiptTime;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "调货的规格列表")
    @NotEmpty(message = "调货的规格列表不能为空")
    private List<TransferOrderSkuListRequest> transferOrderSkuListRequest;
}
